import Vue from "vue";
import vuex from "vuex";
Vue.use(vuex);

//引入模块化的store
import product from "./product";
import cart from "./cart";
import comment from "./comment";

export default new vuex.Store({
  state: {},
  mutations: {},
  actions: {},
  getters: {},
  modules: {
    //引入进来的store，第一步就是挂到这里面来
    product,
    cart,
    comment,
  },
  plugins: [],
});
